package packing;

import java.io.Serializable;


public class BoxNode implements Serializable{

	public Box box;
	public int x,y,z;
	public int positionX=0,positionY=0,positionZ=0;
	public BoxNode(Object object, int x, int y, int z) {
		this.box = (Box) object;
		this.x = x;
		this.y = y;
		this.z = z;
	}
	public int getPoint(){
		return x+(y/10)+(z/100);
	}
	public String toString() {
		return "BoxPack : id=" + box.id + ", ความกว้าง =" + box.width + ", ความยาว =" + box.length
				+ ", ความสูง =" + box.height + "\n";
	}
	public String useArea(){
		return positionX+","+(positionX+box.length)+","+positionY+","+(positionY+box.width)+"" +
				","+positionZ+","+(positionZ+box.height);
		
	}
	public int getPositionX() {
		return positionX;
	}
	public void setPositionX(int positonX) {
		this.positionX = positonX;
	}
	public int getPositionY() {
		return positionY;
	}
	public void setPositionY(int positionY) {
		this.positionY = positionY;
	}
	public int getPositionZ() {
		return positionZ;
	}
	public void setPositionZ(int positionZ) {
		this.positionZ = positionZ;
	}
	
	
}
